package edu.nf.ch04.entity;

import java.util.Date;
import java.util.List;

/**
 * @author wangl
 * @date 2025/5/12
 * 注意：实体的字段名和请求参数名一一对应
 */
public class User {
    private String username;
    private Integer age;
    private Date birthday;
    private List<String> phones;
    //一对一关联身份证
    private IdCard card;
    //一对一关联地址
    private List<Address> addresses;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public List<String> getPhones() {
        return phones;
    }

    public void setPhones(List<String> phones) {
        this.phones = phones;
    }

    public IdCard getCard() {
        return card;
    }

    public void setCard(IdCard card) {
        this.card = card;
    }

    public List<Address> getAddresses() {
        return addresses;
    }

    public void setAddresses(List<Address> addresses) {
        this.addresses = addresses;
    }
}